
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>推送说明 · 野火IM开发手册</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="野火IM">
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-terminal/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-navigator/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    


    

        
    
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="media_server.html" />
    
    
    <link rel="prev" href="event_callback.html" />
    

    
    <link rel="stylesheet" href="../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    <script src="../gitbook/gitbook-plugin-graph/d3.min.js"></script>
    <script src="../gitbook/gitbook-plugin-graph/function-plot.js"></script>    

    
        <link rel="shortcut icon" href='../favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../favicon.ico' type="image/x-icon">
    
    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"wildfirechat/server","types":["star"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.wildfirechat.cn" target="_blank" class="custom-link">Home</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.1.</b>
                    
                    产品介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../quick_start/">
            
                <a href="../quick_start/">
            
                    
                        <b>1.2.</b>
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../quick_start/server.html">
            
                <a href="../quick_start/server.html">
            
                    
                        <b>1.2.1.</b>
                    
                    服务器部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../quick_start/android.html">
            
                <a href="../quick_start/android.html">
            
                    
                        <b>1.2.2.</b>
                    
                    安卓编译
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../quick_start/iOS.html">
            
                <a href="../quick_start/iOS.html">
            
                    
                        <b>1.2.3.</b>
                    
                    iOS编译
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../architecture/">
            
                <a href="../architecture/">
            
                    
                        <b>1.3.</b>
                    
                    系统架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../base_knowledge/">
            
                <a href="../base_knowledge/">
            
                    
                        <b>1.4.</b>
                    
                    基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../base_knowledge/sdk_demo.html">
            
                <a href="../base_knowledge/sdk_demo.html">
            
                    
                        <b>1.4.1.</b>
                    
                    SDK与Demo的关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../base_knowledge/user.html">
            
                <a href="../base_knowledge/user.html">
            
                    
                        <b>1.4.2.</b>
                    
                    用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../base_knowledge/sdk_abilities.html">
            
                <a href="../base_knowledge/sdk_abilities.html">
            
                    
                        <b>1.4.3.</b>
                    
                    SDK的功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../base_knowledge/connect.html">
            
                <a href="../base_knowledge/connect.html">
            
                    
                        <b>1.4.4.</b>
                    
                    连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../base_knowledge/conversation.html">
            
                <a href="../base_knowledge/conversation.html">
            
                    
                        <b>1.4.5.</b>
                    
                    会话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../base_knowledge/message.html">
            
                <a href="../base_knowledge/message.html">
            
                    
                        <b>1.4.6.</b>
                    
                    消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../base_knowledge/message_content.html">
            
                <a href="../base_knowledge/message_content.html">
            
                    
                        <b>1.4.7.</b>
                    
                    消息内容
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../base_knowledge/message_payload.html">
            
                <a href="../base_knowledge/message_payload.html">
            
                    
                        <b>1.4.8.</b>
                    
                    消息负载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../base_knowledge/storage_and_sync.html">
            
                <a href="../base_knowledge/storage_and_sync.html">
            
                    
                        <b>1.4.9.</b>
                    
                    存储与同步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../base_knowledge/offline_message.html">
            
                <a href="../base_knowledge/offline_message.html">
            
                    
                        <b>1.4.10.</b>
                    
                    离线消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="../base_knowledge/group.html">
            
                <a href="../base_knowledge/group.html">
            
                    
                        <b>1.4.11.</b>
                    
                    群组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="../base_knowledge/chatroom.html">
            
                <a href="../base_knowledge/chatroom.html">
            
                    
                        <b>1.4.12.</b>
                    
                    聊天室
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.5.</b>
                    
                    服务器说明
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="server_port.html">
            
                <a href="server_port.html">
            
                    
                        <b>1.5.1.</b>
                    
                    服务器端口说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="db_config.html">
            
                <a href="db_config.html">
            
                    
                        <b>1.5.2.</b>
                    
                    数据库配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="server_memory.html">
            
                <a href="server_memory.html">
            
                    
                        <b>1.5.3.</b>
                    
                    机器内存的选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="benchmark.html">
            
                <a href="benchmark.html">
            
                    
                        <b>1.5.4.</b>
                    
                    性能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="server_config.html">
            
                <a href="server_config.html">
            
                    
                        <b>1.5.5.</b>
                    
                    服务器配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="admin_api/">
            
                <a href="admin_api/">
            
                    
                        <b>1.5.6.</b>
                    
                    Admin API接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.6.1" data-path="admin_api/user_api.html">
            
                <a href="admin_api/user_api.html">
            
                    
                        <b>1.5.6.1.</b>
                    
                    用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.2" data-path="admin_api/user_relation.html">
            
                <a href="admin_api/user_relation.html">
            
                    
                        <b>1.5.6.2.</b>
                    
                    用户关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.3" data-path="admin_api/robot_api.html">
            
                <a href="admin_api/robot_api.html">
            
                    
                        <b>1.5.6.3.</b>
                    
                    机器人
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.4" data-path="admin_api/message_api.html">
            
                <a href="admin_api/message_api.html">
            
                    
                        <b>1.5.6.4.</b>
                    
                    消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.5" data-path="admin_api/group_api.html">
            
                <a href="admin_api/group_api.html">
            
                    
                        <b>1.5.6.5.</b>
                    
                    群组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.6" data-path="admin_api/chatroom_api.html">
            
                <a href="admin_api/chatroom_api.html">
            
                    
                        <b>1.5.6.6.</b>
                    
                    聊天室
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.7" data-path="admin_api/sensitive_word_api.html">
            
                <a href="admin_api/sensitive_word_api.html">
            
                    
                        <b>1.5.6.7.</b>
                    
                    敏感词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.8" data-path="admin_api/error_code.html">
            
                <a href="admin_api/error_code.html">
            
                    
                        <b>1.5.6.8.</b>
                    
                    code状态码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="robot_api/">
            
                <a href="robot_api/">
            
                    
                        <b>1.5.7.</b>
                    
                    Robot API接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="event_callback.html">
            
                <a href="event_callback.html">
            
                    
                        <b>1.5.8.</b>
                    
                    事件回调
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.9" data-path="push_config.html">
            
                <a href="push_config.html">
            
                    
                        <b>1.5.9.</b>
                    
                    推送说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="media_server.html">
            
                <a href="media_server.html">
            
                    
                        <b>1.5.10.</b>
                    
                    媒体服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="server_clean.html">
            
                <a href="server_clean.html">
            
                    
                        <b>1.5.11.</b>
                    
                    服务的维护
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="mysql_tune.html">
            
                <a href="mysql_tune.html">
            
                    
                        <b>1.5.12.</b>
                    
                    MySQL调优
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../android/">
            
                <a href="../android/">
            
                    
                        <b>1.6.</b>
                    
                    Android开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../android/compile.html">
            
                <a href="../android/compile.html">
            
                    
                        <b>1.6.1.</b>
                    
                    代码编译与工程说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../android/ChatClient.html">
            
                <a href="../android/ChatClient.html">
            
                    
                        <b>1.6.2.</b>
                    
                    ChatClient简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../android/ChatUIKit.html">
            
                <a href="../android/ChatUIKit.html">
            
                    
                        <b>1.6.3.</b>
                    
                    ChatUIKit简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../android/wildfirechat.html">
            
                <a href="../android/wildfirechat.html">
            
                    
                        <b>1.6.4.</b>
                    
                    WildfireChat简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../android/push.html">
            
                <a href="../android/push.html">
            
                    
                        <b>1.6.5.</b>
                    
                    推送集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../ios/">
            
                <a href="../ios/">
            
                    
                        <b>1.7.</b>
                    
                    iOS开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../ios/compile.html">
            
                <a href="../ios/compile.html">
            
                    
                        <b>1.7.1.</b>
                    
                    代码编译与工程说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../ios/chatclient.html">
            
                <a href="../ios/chatclient.html">
            
                    
                        <b>1.7.2.</b>
                    
                    ChatClient简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../ios/chatuikit.html">
            
                <a href="../ios/chatuikit.html">
            
                    
                        <b>1.7.3.</b>
                    
                    ChatUIKit简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../ios/wildfirechat.html">
            
                <a href="../ios/wildfirechat.html">
            
                    
                        <b>1.7.4.</b>
                    
                    WildfireChat简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../ios/push.html">
            
                <a href="../ios/push.html">
            
                    
                        <b>1.7.5.</b>
                    
                    推送集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../faq/">
            
                <a href="../faq/">
            
                    
                        <b>1.8.</b>
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../faq/general.html">
            
                <a href="../faq/general.html">
            
                    
                        <b>1.8.1.</b>
                    
                    通用问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../faq/server.html">
            
                <a href="../faq/server.html">
            
                    
                        <b>1.8.2.</b>
                    
                    服务器问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.2.1" data-path="../faq/server/q1.html">
            
                <a href="../faq/server/q1.html">
            
                    
                        <b>1.8.2.1.</b>
                    
                    如何导入到IDE中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2.2" data-path="../faq/server/q2.html">
            
                <a href="../faq/server/q2.html">
            
                    
                        <b>1.8.2.2.</b>
                    
                    如何解决等登陆但一直连接中的问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../faq/android.html">
            
                <a href="../faq/android.html">
            
                    
                        <b>1.8.3.</b>
                    
                    安卓问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../faq/ios.html">
            
                <a href="../faq/ios.html">
            
                    
                        <b>1.8.4.</b>
                    
                    iOS问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >推送说明</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#&#x63A8;&#x9001;&#x8BF4;&#x660E;">&#x63A8;&#x9001;&#x8BF4;&#x660E;</a></li></ul></div><a href="#&#x63A8;&#x9001;&#x8BF4;&#x660E;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x63A8;&#x9001;&#x8BF4;&#x660E;"><a name="&#x63A8;&#x9001;&#x8BF4;&#x660E;" class="anchor-navigation-ex-anchor" href="#&#x63A8;&#x9001;&#x8BF4;&#x660E;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x63A8;&#x9001;&#x8BF4;&#x660E;</h1>
<h3 id="&#x63A8;&#x9001;&#x8BBE;&#x8BA1;&#x53CA;&#x539F;&#x5219;">0.1. &#x63A8;&#x9001;&#x8BBE;&#x8BA1;&#x53CA;&#x539F;&#x5219;</h3>
<p>Android&#x548C;/iOS&#x7CFB;&#x7EDF;&#x9700;&#x8981;&#x63A8;&#x9001;&#x670D;&#x52A1;&#xFF0C;&#x4F46;&#x7531;&#x4E8E;&#x63A8;&#x9001;&#x5382;&#x5BB6;&#x592A;&#x591A;&#xFF0C;&#x800C;&#x4E14;&#x8FD8;&#x5728;&#x4E0D;&#x65AD;&#x53D8;&#x5316;&#x4E2D;&#xFF0C;&#x56E0;&#x6B64;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x4ECE;IM&#x670D;&#x52A1;&#x4E2D;&#x72EC;&#x7ACB;&#x51FA;&#x6765;&#x3002;&#x5F53;&#x67D0;&#x7528;&#x6237;&#x9700;&#x8981;&#x63A8;&#x9001;&#x65F6;&#xFF0C;IM&#x670D;&#x52A1;&#x4F1A;&#x8C03;&#x7528;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x8FDB;&#x884C;&#x63A8;&#x9001;&#x3002;
&#x8FD9;&#x6837;&#x505A;&#x7684;&#x597D;&#x5904;&#x5C31;&#x662F;IM&#x7CFB;&#x7EDF;&#x4E0E;&#x63A8;&#x9001;&#x7CFB;&#x7EDF;&#x72EC;&#x7ACB;&#xFF0C;&#x5F53;&#x63A8;&#x9001;&#x53D1;&#x751F;&#x53D8;&#x5316;&#x65F6;&#xFF0C;&#x4E0D;&#x7528;&#x4FEE;&#x6539;IM&#x670D;&#x52A1;&#x3002;</p>
<p>&#x63A8;&#x9001;&#x6CA1;&#x6709;&#x9009;&#x62E9;&#x7B2C;&#x4E09;&#x65B9;&#x63A8;&#x9001;&#xFF0C;&#x90FD;&#x662F;&#x76F4;&#x63A5;&#x6839;&#x636E;&#x578B;&#x53F7;&#xFF0C;&#x63A8;&#x9001;&#x5230;&#x5404;&#x4E2A;&#x5382;&#x5BB6;&#x7684;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x53BB;&#xFF0C;&#x8FD9;&#x6837;&#x5C31;&#x5927;&#x5927;&#x63D0;&#x9AD8;&#x4E86;&#x63A8;&#x9001;&#x6210;&#x529F;&#x7387;&#xFF0C;&#x4F46;&#x96BE;&#x5EA6;&#x4E5F;&#x63D0;&#x9AD8;&#x5F88;&#x591A;&#xFF0C;&#x9700;&#x8981;&#x5BF9;&#x63A5;&#x4F17;&#x591A;&#x5382;&#x5BB6;&#x3002;&#x597D;&#x6D88;&#x606F;&#x662F;&#x76EE;&#x524D;&#x624B;&#x673A;&#x7684;&#x5934;&#x90E8;&#x5E02;&#x573A;&#x5DF2;&#x7ECF;&#x5F62;&#x6210;&#xFF0C;Android&#x6392;&#x540D;&#x524D;5&#x7684;&#x5382;&#x5BB6;&#x5DF2;&#x7ECF;&#x5360;&#x636E;&#x5E02;&#x573A;&#x7684;90%&#x4EE5;&#x4E0A;&#xFF0C;&#x5E76;&#x4E14;&#x8FD8;&#x5728;&#x4E0D;&#x65AD;&#x96C6;&#x4E2D;&#xFF0C;&#x80FD;&#x591F;&#x51CF;&#x5C11;&#x5BF9;&#x63A5;&#x7684;&#x5DE5;&#x4F5C;&#x91CF;&#x3002;</p>
<p>&#x6709;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x7684;&#x5382;&#x5BB6;&#x4F7F;&#x7528;&#x5382;&#x5BB6;&#x7684;&#x63A8;&#x9001;&#x670D;&#x52A1;&#xFF0C;&#x6CA1;&#x6709;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x7684;&#x5382;&#x5BB6;&#xFF0C;&#x4F7F;&#x7528;&#x5C0F;&#x7C73;&#x63A8;&#x9001;&#x3002;&#x5728;&#x5B9E;&#x9645;&#x4F7F;&#x7528;&#x4E2D;&#x5C0F;&#x7C73;&#x63A8;&#x9001;&#x4E0E;&#x7B2C;&#x4E09;&#x65B9;&#x63A8;&#x9001;&#x5728;&#x975E;&#x5C0F;&#x7C73;&#x624B;&#x673A;&#x4E0A;&#x7684;&#x8868;&#x73B0;&#x5DEE;&#x4E0D;&#x591A;&#x3002;</p>
<h3 id="&#x914D;&#x7F6E;">0.2. &#x914D;&#x7F6E;</h3>
<p>&#x5728;<code>wildfirechat.conf</code>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x4FEE;&#x6539;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;</p>
<pre class="language-"><code>#*********************************************************************
# Push server configuration
#*********************************************************************
##&#x5B89;&#x5353;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;
push.android.server.address http://localhost:8085/android/push
##&#x82F9;&#x679C;&#x63A8;&#x9001;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;
push.ios.server.address http://localhost:8085/ios/push
</code></pre><h3 id="&#x8C03;&#x7528;&#x53C2;&#x6570;">0.3. &#x8C03;&#x7528;&#x53C2;&#x6570;</h3>
<p>&#x4F7F;&#x7528;post&#x65B9;&#x5F0F;&#xFF0C;&#x5185;&#x5BB9;&#x4E3A;json&#xFF0C;&#x53C2;&#x6570;&#x5982;&#x4E0B;</p>
<h4 id="body">0.3.1. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>sender</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x53D1;&#x9001;&#x8005;ID</td>
</tr>
<tr>
<td>senderName</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x53D1;&#x9001;&#x8005;&#x59D3;&#x540D;</td>
</tr>
<tr>
<td>convType</td>
<td>int</td>
<td>&#x662F;</td>
<td>&#x4F1A;&#x8BDD;&#x7C7B;&#x578B;</td>
</tr>
<tr>
<td>target</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x63A5;&#x6536;&#x7528;&#x6237;ID</td>
</tr>
<tr>
<td>targetName</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x63A5;&#x6536;&#x7528;&#x6237;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td>line</td>
<td>int</td>
<td>&#x5426;</td>
<td>&#x4F1A;&#x8BDD;&#x7EBF;&#x8DEF;&#xFF0C;&#x7F3A;&#x7701;&#x4E3A;0</td>
</tr>
<tr>
<td>serverTime</td>
<td>long</td>
<td>&#x662F;</td>
<td>&#x6D88;&#x606F;&#x65F6;&#x95F4;</td>
</tr>
<tr>
<td>pushMessageType</td>
<td>int</td>
<td>&#x662F;</td>
<td>0 &#x666E;&#x901A;&#x6D88;&#x606F;&#xFF1B;1 voip&#x6D88;&#x606F;&#x3002;&#x5728;&#x652F;&#x6301;&#x900F;&#x4F20;&#x7684;&#x7CFB;&#x7EDF;&#x4E0A;&#xFF0C;voip&#x6D88;&#x606F;&#x7528;&#x900F;&#x4F20;</td>
</tr>
<tr>
<td>pushType</td>
<td>int</td>
<td>&#x662F;</td>
<td>&#x63A8;&#x9001;&#x7C7B;&#x578B;&#xFF0C;android&#x63A8;&#x9001;&#x5206;&#x4E3A;&#x5C0F;&#x7C73;/&#x534E;&#x4E3A;/&#x9B45;&#x65CF;&#x7B49;&#x3002;ios&#x5206;&#x522B;&#x4E3A;&#x5F00;&#x53D1;&#x548C;&#x53D1;&#x5E03;&#x3002;</td>
</tr>
<tr>
<td>pushContent</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x6D88;&#x606F;&#x63A8;&#x9001;&#x5185;&#x5BB9;</td>
</tr>
<tr>
<td>unReceivedMsg</td>
<td>int</td>
<td>&#x662F;</td>
<td>&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x6CA1;&#x6709;&#x63A5;&#x6536;&#x4E0B;&#x6765;&#x7684;&#x6D88;&#x606F;&#x6570;&#xFF08;&#x53EA;&#x8BA1;&#x7B97;&#x8BA1;&#x6570;&#x6D88;&#x606F;&#xFF09;</td>
</tr>
<tr>
<td>mentionedType</td>
<td>int</td>
<td>&#x5426;</td>
<td>&#x6D88;&#x606F;&#x63D0;&#x9192;&#x7C7B;&#x578B;&#xFF0C;0&#xFF0C;&#x6CA1;&#x63D0;&#x9192;&#xFF1B;1&#xFF0C;&#x63D0;&#x9192;&#x4E86;&#x5F53;&#x524D;&#x7528;&#x6237;&#xFF1B;2&#xFF0C;&#x63D0;&#x9192;&#x4E86;&#x6240;&#x6709;&#x4EBA;</td>
</tr>
<tr>
<td>packageName</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x5E94;&#x7528;&#x5305;&#x540D;</td>
</tr>
<tr>
<td>deviceToken</td>
<td>int</td>
<td>&#x5426;</td>
<td>&#x8BBE;&#x5907;token</td>
</tr>
<tr>
<td>isHiddenDetail</td>
<td>bool</td>
<td>&#x5426;</td>
<td>&#x662F;&#x5426;&#x8981;&#x9690;&#x85CF;&#x63A8;&#x9001;&#x8BE6;&#x60C5;</td>
</tr>
<tr>
<td>language</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x63A5;&#x6536;&#x8005;&#x7684;&#x624B;&#x673A;&#x8BED;&#x8A00;</td>
</tr>
</tbody>
</table>
<h3 id="demo&#x63A8;&#x9001;&#x670D;&#x52A1;">0.4. demo&#x63A8;&#x9001;&#x670D;&#x52A1;</h3>
<p>&#x6211;&#x4EEC;&#x5F00;&#x53D1;&#x4E86;<a href="https://github.com/wildfirechat/push_server" target="_blank">&#x63A8;&#x9001;&#x670D;&#x52A1;</a>&#xFF0C;&#x5BA2;&#x6237;&#x53EF;&#x4EE5;&#x62FF;&#x6765;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x3002;&#x76EE;&#x524D;demo&#x63A8;&#x9001;&#x670D;&#x52A1;&#x5DF2;&#x7ECF;&#x5BF9;&#x63A5;&#x4E86;iOS/&#x534E;&#x4E3A;/&#x5C0F;&#x7C73;/&#x9B45;&#x65CF;&#xFF0C;&#x5176;&#x4E2D;&#x9B45;&#x65CF;&#x8FD8;&#x9700;&#x8981;&#x8C03;&#x8BD5;&#x3002;&#x53E6;&#x5916;&#x5BA2;&#x6237;&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x5BF9;&#x63A5;OPPO&#x548C;VIVO&#x3002;</p>
<footer class="page-footer"><span class="copyright">2018 &#xA9; wildfirechat.cn &#x4EAC;ICP&#x5907;18060403&#x53F7;-1 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2019-03-19 21:40:43
</span></footer><div id="anchors-navbar"><i class="fa fa-anchor"></i><ul><p><a href="#&#x63A8;&#x9001;&#x8BF4;&#x660E;">&#x63A8;&#x9001;&#x8BF4;&#x660E;</a></p><li><a href="#">none</a></li><ul><li><a href="#&#x63A8;&#x9001;&#x8BBE;&#x8BA1;&#x53CA;&#x539F;&#x5219;">0.1. &#x63A8;&#x9001;&#x8BBE;&#x8BA1;&#x53CA;&#x539F;&#x5219;</a></li><li><a href="#&#x914D;&#x7F6E;">0.2. &#x914D;&#x7F6E;</a></li><li><a href="#&#x8C03;&#x7528;&#x53C2;&#x6570;">0.3. &#x8C03;&#x7528;&#x53C2;&#x6570;</a></li><ul><li><a href="#body">0.3.1. body</a></li></ul><li><a href="#demo&#x63A8;&#x9001;&#x670D;&#x52A1;">0.4. demo&#x63A8;&#x9001;&#x670D;&#x52A1;</a></li></ul></ul></div><a href="#" id="goTop"><i class="fa fa-arrow-up"></i></a>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="event_callback.html" class="navigation navigation-prev " aria-label="Previous page: 事件回调">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="media_server.html" class="navigation navigation-next " aria-label="Next page: 媒体服务">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"推送说明","level":"1.5.9","depth":2,"next":{"title":"媒体服务","level":"1.5.10","depth":2,"path":"server/media_server.md","ref":"server/media_server.md","articles":[]},"previous":{"title":"事件回调","level":"1.5.8","depth":2,"path":"server/event_callback.md","ref":"server/event_callback.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","prism@^2.1.0","prism-themes@^0.0.2","anchors@^0.7.1","emphasize@^1.1.0","splitter@^0.0.8","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","local-video@^1.0.1","sitemap-general@^0.1.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2","todo@^0.1.3","3-ba@^0.9.0","terminal@^0.3.2","alerts@^0.2.0","include-csv@^0.1.0","puml@^1.0.1","musicxml@^1.0.2","-sharing","sharing-plus@^0.0.2","graph@^0.1.0","chart@^0.2.0","include-codeblock@^3.0.2","ace@^0.3.2","mermaid-gb3@2.1.0","katex@^1.1.3","navigator"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"2018 © wildfirechat.cn 京ICP备18060403号-1","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"include-csv":{},"disqus":{"shortName":"gitbookuse"},"emphasize":{},"ace":{},"github":{"url":"https://github.com/wildfirechat/docs"},"puml":{},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"todo":{},"splitter":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"graph":{},"sitemap-general":{"prefix":"http://wildfirechat.cn"},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"musicxml":{},"sectionx":{"tag":"b"},"mermaid-gb3":{},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"prism-themes":{},"navigator":{},"alerts":{},"github-buttons":{"repo":"wildfirechat/server","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"ff100361cdce95dd4c8fb96b4009f7bc"},"expandable-chapters-small":{},"local-video":{},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":true,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon","qq","qzone"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":true},"terminal":{"copyButtons":true,"fade":false,"style":"flat"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"chart":{"type":"c3"},"search-plus":{}},"theme":"default","author":"野火IM","pdf":{"pageNumbers":true,"fontSize":9,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":45,"left":45,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"野火IM开发手册","links":{"sidebar":{"Home":"http://www.wildfirechat.cn"}},"gitbook":"*","description":"野火IM开发手册"},"file":{"path":"server/push_config.md","mtime":"2019-03-19T13:40:43.019Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-24T12:42:00.565Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-terminal/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-musicxml/osmd.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-musicxml/musicxml.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-musicxml/promise.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

